﻿using Microsoft.AspNetCore.Mvc;
using ZingBlog.Domain.Entities;
using ZingBlog.IService;
using ZingBlog.Web.Models;

namespace ZingBlog.Web.Controllers
{
    public class LinksController : Controller
    {
        public ILinksService service { get; set; }
        // GET: Links
        public ActionResult Index()
        {
            var siteInfo = new WebSiteInfo();
            ViewBag.SiteTitle = siteInfo.GetWebSiteInfo().SiteTitle;
            IEnumerable<LinksEntity> LinksList = service.GetAll();
            return View(LinksList);
        }
    }
}